window.define([ "ng", "stjs", "_", "common/js/user-module",
		"common/js/util-module", "ui.router" ], function(angular, stjs, _) {

	var app = angular.module("AuthApp",
			[ "UserModule", "UtilModule", "ui.router" ]);
	app.config(function($stateProvider, $urlRouterProvider) {
		$stateProvider.state("supadmin", {
			"url" : "/supadmin",
			"controller" : function($scope, epModal) {
				$scope.$parent.loginInfo.role = "SUPADMIN";
				epModal.open("login");
			}
		});
	});
	
	@ClassDef:client.authentication.AuthScope@
	app.controller("AuthCtrl", stjs.toAngularCtrl(AuthScope));
	return app;
})